package com.example.demo.security.model;

import java.sql.Timestamp;

public class AdminToken {
    private  int user_id;
    private String token;
    private Timestamp createtime;

    public AdminToken() {
    }

    public AdminToken(int user_id, String token, Timestamp createtime) {
        this.user_id = user_id;
        this.token = token;
        this.createtime = createtime;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "AdminToken{" +
                "user_id=" + user_id +
                ", token='" + token + '\'' +
                ", createtime=" + createtime +
                '}';
    }
}
